package com.gable.exhibition.dao;

import com.gable.exhibition.model.ManufacturerSupplier;
import com.gable.exhibition.view.ManufacturerSupplierView;

import java.util.List;

public interface ManufacturerSupplierDao {
    int deleteByPrimaryKey(Long manufacturerSupplierId);

    int insert(ManufacturerSupplier record);

    int insertSelective(ManufacturerSupplier record);

    ManufacturerSupplier selectByPrimaryKey(Long manufacturerSupplierId);

    int updateByPrimaryKeySelective(ManufacturerSupplier record);

    int updateByPrimaryKey(ManufacturerSupplier record);

    List<ManufacturerSupplierView> manufacturerSupplierInit();

    List<ManufacturerSupplierView> supplierManufacturerInit();

    /**
     * 删除厂商和供应商之间的关系
     * @param manufacturerId
     * @Create user jacky
     * @Create date 2018/3/16
     * @return
     */
    int deleteBaseByManufacturerId(Long manufacturerId);
}